package com.songlanyun.modules.distributionconfig.service;

import com.songlanyun.common.drive.IBaseService;
import com.songlanyun.modules.distributionconfig.entity.DistributionShopGoodsConfig;
import com.songlanyun.modules.distributionconfig.entity.DistributionShopServiceGoodsConfig;
import com.songlanyun.modules.distributionconfig.model.DistributionShopGoodsConfigDTO;
import com.songlanyun.modules.distributionconfig.model.DistributionShopServiceGoodsConfigDTO;

/**
 * 商家服务商品级分销设置
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-12-22 11:43:24
 */
public interface DistributionShopServiceGoodsConfigService extends IBaseService<Long, DistributionShopServiceGoodsConfig> {

    /**
     * 获取商家服务商品级分销设置
     * @param shopId
     * @param goodsId
     * @return
     */
    DistributionShopServiceGoodsConfig getShopAndGoods(Long shopId, Long goodsId);

    /**
     * 保存服务商品级分销设置
     * @param shopId
     * @param dto
     * @return
     */
    DistributionShopServiceGoodsConfig set(Long shopId, DistributionShopServiceGoodsConfigDTO dto);
}

